#include <stdio.h>
#include "dec_api.h"
#include "dec.h"

unsigned char s_u8PlayerStarted = 0;

int DEC_SptsOut(unsigned char* pu8Ts, unsigned int u32Len)
{
	if(s_u8PlayerStarted == 1)
	{
		DVBDecoderPushData(pu8Ts, u32Len);
	}
	return 0;
}

void StartPlayerNotify(int s32Start)
{
	if(s32Start == 1)//start player
	{
		//DVBDecoderStart();
		s_u8PlayerStarted = 1;
	}
	else if(s32Start == 0)//stop player
	{
		//DVBDecoderStop();
		s_u8PlayerStarted = 0;
	}
}
